Skip to content

Pretty print havoc_object instructions #6174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

SaswatPadhi
Copy link
Contributor

Resolves #6125.

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@SaswatPadhi
Copy link
Contributor Author

cc: @feliperodri

@SaswatPadhi SaswatPadhi requested a review from feliperodri June 12, 2021 01:26
@SaswatPadhi SaswatPadhi force-pushed the havoc_object_as_string branch 2 times, most recently from dbff795 to 892ff2c Compare June 12, 2021 02:02
@codecov
Copy link

codecov bot commented Jun 12, 2021

Codecov Report

Merging #6174 (c266846) into develop (6b50008) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6174      +/-   ##
===========================================
+ Coverage    75.30%   75.31%   +0.01%     
===========================================
  Files         1450     1450              
  Lines       158480   158485       +5     
===========================================
+ Hits        119348   119369      +21     
+ Misses       39132    39116      -16     
Impacted Files Coverage Δ
src/goto-programs/goto_program.cpp 66.95% <100.00%> (+13.90%) ⬆️
src/ansi-c/gcc_types.cpp 41.86% <0.00%> (-46.52%) ⬇️
src/ansi-c/scanner.l 40.71% <0.00%> (-1.66%) ⬇️
src/ansi-c/parser.y 56.54% <0.00%> (-1.58%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4dc2dd5...c266846. Read the comment docs.

@SaswatPadhi SaswatPadhi added aws Bugs or features of importance to AWS CBMC users enhancement labels Jun 12, 2021
@SaswatPadhi SaswatPadhi self-assigned this Jun 12, 2021
Copy link
Collaborator

@feliperodri feliperodri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@SaswatPadhi SaswatPadhi force-pushed the havoc_object_as_string branch from 892ff2c to c266846 Compare June 13, 2021 20:29
}
// fallthrough
}
// fallthrough
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ 💡 might be more readable to just repeat the line from ASSIGN and break.

Copy link
Contributor Author

@SaswatPadhi SaswatPadhi Jun 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right that having:

    out << from_expr(ns, identifier, instruction.get_code()) << '\n';
    break;

in place of the two fallthrough comments above would probably be more explicit, but this would also lead to code duplication, so I am somewhat hesitant. I added the comments to make it explicit that we are going to fall into the next case.

@SaswatPadhi SaswatPadhi merged commit b84b37d into diffblue:develop Jun 14, 2021
@SaswatPadhi SaswatPadhi deleted the havoc_object_as_string branch June 14, 2021 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Bugs or features of importance to AWS CBMC users enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pretty print __CPROVER_havoc_object in --show-goto-functions
3 participants